package com.miaosha.mapper;

import com.miaosha.pojo.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface OrderMapper {


    @Insert("insert into stock_order(name,sid,create_time) values(#{name},#{sid},#{createTime})")
     @Options(useGeneratedKeys = true, keyProperty = "id") //新增了过后并且吧 订单id返回
    void saveOrder(Order order);
}
